﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/Vista/Site.Master" AutoEventWireup="true" CodeBehind="CrearPerfilReglas.aspx.cs" Inherits="Tibet.GUI.Vista.CrearPerfilReglas" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">

        .style18
        {
            width: 158px;
        }
        .style26
        {
            width: 176px;
        }
        .style21
        {
            width: 203px;
        }
        .style25
        {
            width: 158px;
            text-align: left;
        }
        .style28
        {
            height: 35px;
        }
        .style29
        {
            width: 255px;
        }
        .style36
        {
            width: 163px;
        }
        .style37
        {
            width: 163px;
            text-align: left;
        }
        .style38
        {
            width: 163px;
            text-align: right;
        }
        </style>

<script language="javascript" type="text/javascript">
// <![CDATA[

function 26_onclick() {

}

// ]]>
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table align="center" >
        <tr>
            <td align="left">
                <div class="clear hideSkiplink">
                    <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false"
                            IncludeStyleBlock="false" Orientation="Horizontal">
                        <Items>
                            <asp:MenuItem NavigateUrl="CrearPerfilReglas.aspx" Text="Crear Reglas"/>
                            <asp:MenuItem NavigateUrl="CrearPerfilMetricas.aspx" Text="Crear Métricas"/>
                            <asp:MenuItem NavigateUrl="ModificarPerfilReglas.aspx" Text="Modificar Reglas"/>
                            <asp:MenuItem NavigateUrl="ModificarPerfilMetricas.aspx" Text="Modificar Métricas"/>
                        </Items>
                    </asp:Menu>
                </div>
            </td>            
            <td align="right"><a href="Login.aspx">Salir</a></td>
        </tr>
    </table>
<asp:Panel ID="Panel1" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
    <h1>Crear Perfil de Reglas</h1>
    <br />
    <table>
        <tr>
            <td>
                Nombre:</td>
            <td>
                
                <asp:TextBox ID="txtCrearRegla" runat="server" 
                    ValidationGroup="grupoCrearPerfilRegla"></asp:TextBox>

                <asp:RegularExpressionValidator ID="RegularExpressionValidator" runat="server" 
                ControlToValidate="txtCrearRegla" ErrorMessage="Caracter Invalido" 
                ValidationExpression="[^']{1,50}" ValidationGroup = "grupoCrearPerfilRegla" class="obligado"></asp:RegularExpressionValidator>

                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCrearRegla"
                ValidationGroup="grupoCrearPerfilRegla" ErrorMessage="El Perfil no puede contener un nombre vacio" class="obligado"></asp:RequiredFieldValidator>

            </td>
                <td colspan="2" class="obligado" style="text-align: left">
                </td>
        </tr>
                    <tr>
                        <td class="obligado" colspan="2" style="text-align: left">
                            * Campo Obligatorio</td>
        </tr>
    </table>

    <table>
        <tr>
            <td class="style28">
                <asp:CheckBox ID="perfilPorDefecto" runat="server" 
                    oncheckedchanged="perfilPorDefecto_CheckedChanged" AutoPostBack="True" />
                &nbsp;&nbsp;&nbsp;</td>
            <td class="style28">
                &nbsp;
    Asignar Perfil de Reglas por defecto    
</td>
        </tr>
    </table>
&nbsp;<div align="center">
        ---------------------------------------------------------------------------------------------------------------------------
    </div>
    <div align="left">
        <table>
            <tr>
               
    <td align="left" class="style29">
        &nbsp;Copiar Perfil de Reglas ya creado:</td>

                <td>
                    <asp:DropDownList ID="BuscarPerfilRegla" runat="server" align="left" 
                        Height="27px" style="margin-left: 0px" Width="170px" 
                        onselectedindexchanged="buscarPerfilRegla_SelectedIndexChanged" 
                        AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---------------------------------------------------------------------------------------------------------------------------
    <br />
    <div style="margin-top: 0px">

        <table>
            <tr>
                <td class="style18">
                    Nombramiento de:</td>
                <td class="style26">
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style36">
                    Documentación&nbsp; de:</td>
                <td style="width: 400px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    Clases:</td>
                <td>
                    <asp:DropDownList ID="NombreClase" runat="server" AppendDataBoundItems="true" 
                        Width="184px" AutoPostBack="false" 
                        onselectedindexchanged="NombreClase_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox1" runat="server" Height="22px" 
                        ontextchanged="TextBox1_TextChanged" Width="184px"></asp:TextBox>
                </td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style37">
                    <asp:CheckBox ID="DocumentBoilerplate" runat="server" 
                        oncheckedchanged="Boilerplate_CheckedChanged" AutoPostBack="false" />
                    Boilerplate</td>
                <td style="width: 400px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    Atributos:<br /> </td>
                <td>
                    <asp:DropDownList ID="NombreAtributo" runat="server" 
                        AppendDataBoundItems="true" Width="184px" AutoPostBack="false" 
                        onselectedindexchanged="NombreAtributo_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox2" runat="server" Width="184px"></asp:TextBox>
                </td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style37">
                    Clases:</td>
                <td>
                    <asp:DropDownList ID="DocumentClase" runat="server" AppendDataBoundItems="true" 
                        AutoPostBack="false" onselectedindexchanged="DocumentClase_SelectedIndexChanged" 
                        Width="184px">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox3" runat="server" Width="184px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    Métodos:<br /> </td>
                <td>
                    <asp:DropDownList ID="NombreMetodo" runat="server" AppendDataBoundItems="true" 
                        Width="184px" AutoPostBack="false" 
                        onselectedindexchanged="NombreMetodo_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox4" runat="server" Width="184px"></asp:TextBox>
                </td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style37">
                    Estructuras:</td>
                <td>
                    <asp:DropDownList ID="DocumentEstructura" runat="server" 
                        AppendDataBoundItems="true" Width="184px" AutoPostBack="false" 
                        onselectedindexchanged="DocumentEstructura_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox5" runat="server" Width="184px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    Interfaces:<br /> </td>
                <td>
                    <asp:DropDownList ID="NombreInterface" runat="server" 
                        AppendDataBoundItems="true" Width="184px" AutoPostBack="false" 
                        onselectedindexchanged="NombreInterface_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox6" runat="server" Width="184px"></asp:TextBox>
                </td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style37">
                    Métodos:</td>
                <td>
                    <asp:DropDownList ID="DocumentMetodo" runat="server" 
                        AppendDataBoundItems="true" AutoPostBack="false" 
                        onselectedindexchanged="DocumentMetodo_SelectedIndexChanged" Width="184px">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox7" runat="server" Width="184px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    Paquetes:<br /> </td>
                <td>
                    <asp:DropDownList ID="NombrePaquete" runat="server" AppendDataBoundItems="true" 
                        Width="184px" AutoPostBack="false" 
                        onselectedindexchanged="NombrePaquete_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:TextBox ID="TextBox8" runat="server" Width="184px"></asp:TextBox>
                </td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style37">
                    &nbsp;</td>
                <td style="width: 400px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    &nbsp;</td>
                <td class="style26">
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style37">
                </td>
                <td style="width: 400px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style18">
                    Espaciado entre:</td>
                <td class="style26">
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style38">
                </td>
                <td style="width: 400px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    <asp:CheckBox ID="EspacioParentesis" runat="server" 
                        oncheckedchanged="EspacioParentesis_CheckedChanged" AutoPostBack="false" />
                    Paréntesis</td>
                <td>
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style36" align="right">
                    <asp:CheckBox ID="Llaves" runat="server" 
                        oncheckedchanged="Llaves_CheckedChanged" AutoPostBack="false" />
                    &nbsp;Llaves a final de</td>
                <td align="left">
                    &nbsp; línea</td>
            </tr>
            <tr>
                <td class="style25">
                    <asp:CheckBox ID="EspacioOperadores" runat="server" 
                        oncheckedchanged="EspacioOperadores_CheckedChanged" AutoPostBack="false" />
                    Operadores</td>
                <td>
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style38">
                    &nbsp;</td>
                <td style="width: 400px; font-weight: 700;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
                <td class="style38">
                    &nbsp;</td>
                <td style="width: 400px; font-weight: 700;">
                    &nbsp;</td>
            </tr>
        </table>
        <asp:Label ID="Label1" runat="server" aling="center"></asp:Label>
        <asp:HiddenField ID="HiddenField1" runat="server" />
    <br />
        <div align="center">
            <asp:Panel ID="Panel2" runat="server"><asp:Button ID="cmdCrearRegla" runat="server" onclick="cmdCrearRegla_Click" 
                style="font-weight: 700" Text="Crear" width="129px" />
            </asp:Panel>
            <asp:Panel ID="Panel3" runat="server"><asp:Button ID="cmdCopiarRegla" runat="server"
                style="font-weight: 700" Text="Copiar" width="129px" 
                    onclick="cmdCopiarRegla_Click" />
            </asp:Panel>  

        </div>
        <br /><br />
</div> 
</asp:Panel>
</asp:Content>
